<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>欢迎页</title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="${request.contextPath}/statics/css/bootstrap.min.css">
    <script type="text/javascript">

        function check(val) {
            if (val < 10) {
                return ("0" + val);
            } else {
                return (val);
            }
        }

        function ShowTime() {
            var date = new Date();
            var year = date.getFullYear();
            var month = date.getMonth() + 1;
            var day = date.getDate();
            var hour = date.getHours();
            var minutes = date.getMinutes();
            var second = date.getSeconds();
            var timestr = year + "年" + month + "月" + day + "日  " + check(hour)
                + ":" + check(minutes) + ":" + check(second);
            document.getElementById("stime").innerHTML = timestr;
            var timerID = setTimeout('ShowTime()', 1000);
        }
    </script>
</head>
<body onload="ShowTime();">
<div class="panel panel-default">
    <div class="panel-heading">首页信息</div>
    <div style="padding: 10px 0 20px 10px;">
        <p>
        <h3>欢迎来到，<strong>绩效考核系统</strong>
        </h3>
        </p>
        <p>
        <h4>现在时间：<span id="stime"></span></h4>
        </p>
    </div>
</div>

</body>
</html>